package com.catarc.unityback.entity.vo;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ExternalMessage
 * @author van
 * @date 2023/2/26 17:37
 */
@Data
@Builder
@ProtobufClass
@NoArgsConstructor
@AllArgsConstructor
public class TestMessage {
    @Protobuf(
            fieldType = FieldType.INT32,
            order = 1
    )
    private int cmdCode;
    @Protobuf(
            fieldType = FieldType.INT32,
            order = 2
    )
    private int protocolSwitch;
    @Protobuf(
            fieldType = FieldType.INT32,
            order = 3
    )
    private int cmdMerge;
    @Protobuf(
            fieldType = FieldType.SINT32,
            order = 4
    )
    private int responseStatus;
    @Protobuf(
            fieldType = FieldType.STRING,
            order = 5
    )
    private String validMsg;
    @Protobuf(
            fieldType = FieldType.BYTES,
            order = 6
    )
    private byte[] data;
}
